Skip to content

ci: declare contents:read on Build Actions workflow#351

Merged
sidepelican merged 1 commit into
uber:masterfrom
arpitjain099:chore/builds-permissions
May 18, 2026
Merged

ci: declare contents:read on Build Actions workflow#351
sidepelican merged 1 commit into
uber:masterfrom
arpitjain099:chore/builds-permissions

Conversation

@arpitjain099
Copy link
Copy Markdown
Contributor

Pins builds.yml to contents: read at workflow scope. The matrix only installs swiftly/Xcode, checks out, and runs swift test. No GitHub API write, no cache plumbing.

Defense-in-depth motivation is CVE-2025-30066 on tj-actions/changed-files: a compromised third-party action runs inside the existing job context and exfiltrates the workflow GITHUB_TOKEN via build logs. vapor/swiftly-action is third-party here, so the cap is meaningful.

YAML validated locally with yaml.safe_load.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@sidepelican sidepelican merged commit 2662d8b into uber:master May 18, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants